import Vue from 'vue';
import Router from 'vue-router';
import Login from '@/components/Login';
import Home from '@/components/Home';
// 直播管理
import LiveManager from '@/components/liveManager/LiveManager.vue';
import LiveDetail from '@/components/liveManager/liveDetail.vue';
// 申请管理
import ApplyManager from '@/components/applyManager/applyManager.vue';
// 公司管理
import CompanyManager from '@/components/companyManager/companyManager.vue';
import ThirdPartyBinding from '@/components/companyManager/thirdPartyBinding.vue';
import CMSManager from '@/components/companyManager/CMSManager.vue';
import JournalistManager from '@/components/companyManager/journalistManager.vue';
import ToOpenMerchant from '@/components/companyManager/toOpenMerchant.vue';
// 账户管理  acountManager
import AcountManager from '@/components/accountManager/accountManager.vue';
// 系统管理
import SystemManager from '@/components/systemManager/systemManager.vue';
// 多屏监看
import MoreScreen from '@/components/moreScreen/moreScreen.vue';
// 活动管理
import ActivityManager from '@/components/activityManager/activityManager.vue';
import OpinionResearch from '@/components/activityManager/opinionResearch.vue';
import Prize from '@/components/activityManager/prize.vue';
import WinPrize from '@/components/activityManager/winPrize.vue';
import CreateEditActivity from '@/components/activityManager/createEditActivity.vue';
import CommentList from '@/components/activityManager/commentList.vue';
// 常规统计
import Statistics from '@/components/statistics/statistics.vue';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    // 直播管理
    {
      path: '/liveManager',
      component: Home,
      children: [{
        path: 'live',
        component: LiveManager
      },
      {
        path: 'liveDetail',
        component: LiveDetail
      }
      ]
    },
    // 申请管理
    {
      path: '/applyManager',
      component: Home,
      children: [{
        path: 'apply',
        component: ApplyManager
      }]
    },
    // 公司管理
    {
      path: '/companyManager',
      component: Home,
      children: [{
        path: 'company',
        component: CompanyManager
      },
      {
        path: 'thirdPartyBinding',
        component: ThirdPartyBinding
      },
      {
        path: 'CMS',
        component: CMSManager
      },
      {
        path: 'journalist',
        component: JournalistManager
      },
      {
        path: 'modify',
        component: ToOpenMerchant
      }
      ]
    },
    // 账户管理
    {
      path: '/acountManager',
      component: Home,
      children: [{
        path: 'passworldModify',
        component: AcountManager
      }]
    },
    // 系统管理
    {
      path: '/SystemManager',
      component: Home,
      children: [{
        path: 'adminLog',
        component: SystemManager
      }]
    },
    // 多屏监看 MoreScreenMonitor
    {
      path: '/MoreScreenMonitor',
      component: Home,
      children: [{
        path: 'index',
        component: MoreScreen
      }]
    },
    // 活动管理
    {
      path: '/activityManager',
      component: Home,
      children: [{
        path: 'activity',
        component: ActivityManager
      },
      {
        path: 'opinionResearch',
        component: OpinionResearch
      },
      {
        path: 'prize',
        component: Prize
      },
      {
        path: 'winPrize',
        component: WinPrize
      },
      {
        path: 'createEditActivity',
        component: CreateEditActivity
      },
      {
        path: 'commentList',
        component: CommentList
      }
      ]
    },
    // 常规统计 Statistics
    {
      path: '/statistics',
      component: Home,
      children: [{
        path: 'statistics',
        component: Statistics
      }]
    }
  ]
});
